#include <stdio.h>
#include <string.h>

_int64 a,b;
_int64 n,k;

void count()
{
	double tot;
	_int64 i,j;
	tot=1;
	j=n;
	for (i=1;i<=k;i++,j--)
		tot*=j;
	for (i=1;i<=k;i++)
		tot/=i;
	printf("%.0lf\n",tot);

}



main()
{
	while (1)
	{
		scanf("%I64d%I64d", &a, &b);
		if (a==0 && b==0) break;
		n=a+b;
		k=a>b?b:a;
		count();
	}

	return 0;
}